﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;
using Sisocana.Core.Interfaces;

namespace Sisocana.Core.Models
{
    public class UsuarioModel : IUsuarioModel
    {
        public string nombreUsuario { get; set; }
        [Required]
        [DataType(DataType.EmailAddress)]
        [RegularExpression("^[a-z0-9_\\+-]+(\\.[a-z0-9_\\+-]+)*@[a-z0-9-]+(\\.[a-z0-9-]+)*\\.([a-z]{2,4})$",
        ErrorMessage = "Not a valid email adress.")]
        [Display(Name = "Email address")]
        public string email { get; set; }
        public string password { get; set; }
        public string tipo { get; set; }
        public bool check { get; set; }
    }
}
